<template>
    <view class="STH_tell_box clearfix">
        <label class="i iconfont kxfont icon-phone1"></label>
        <label class="span">客服电话</label>
        <label :data-info="prop.tellNum" @tap="call" class="label">{{ prop.tellNum }}</label>
    </view>
</template>

<script>
// component/tell/tell.js
export default {
    data() {
        return {
            prop: null
        };
    },
    /**
     * 组件的属性列表
     */
    props: {
        con: {
            type: Object,
            default: null
        }
    },
    mounted() {
        // 处理小程序 ready 生命周期
        this.$nextTick(() => this.ready());
    },
    /**
     * 组件的方法列表
     */
    methods: {
        ready: function () {
            var that = this;
            var prop = JSON.parse(that.con.prop);
            that.prop = prop;
        },

        call: function (e) {
            var that = this;
            //拨打电话
            uni.makePhoneCall({
                phoneNumber: that.prop.tellNum
            });
        }
    },
    created: function () {}
};
</script>
<style>
@import './tell.css';
</style>
